<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\helpers\HtmlPurifier;
use yii\bootstrap\ActiveForm;

$this->title = '广西中职学校学生信息管理系统';
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.site-login h1 {
  text-align: center;
  margin: 30px;
  font-weight: bold;
}
.form-group {
  margin-bottom: 25px;
}
.help-block-error {
  position: absolute;
}
</style>
<div class="site-login">
    <h1><?= HtmlPurifier::process($this->title) ?></h1>

    <div class="row">
        <div class="col-lg-4 col-lg-offset-4">
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

                <?= $form->field($model, 'username')->textInput(['autofocus' => true, 'class' => 'form-control input-lg']) ?>

                <?= $form->field($model, 'password')->passwordInput(['class' => 'form-control input-lg']) ?>

                <?= $form->field($model, 'rememberMe')->checkbox() ?>

                <div class="form-group">
                    <?= Html::submitButton('<span class="iconfont icon-denglu"></span> 登录', ['class' => 'btn btn-info btn-lg', 'name' => 'login-button']) ?>
                    <?= Html::a('<span class="iconfont icon-zhuce"></span> 注册', ['signup'], ['class' => 'btn btn-success btn-lg', 'name' => 'login-button']) ?>
                </div>

            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
